package com.ayuku.course.ui.courselevel;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

public class CompLevel extends Composite {

	private Text txtKode;
	private Text txtName;

	/**
	 * Create the composite.
	 * 
	 * @param parent
	 * @param style
	 */
	public CompLevel(Composite parent, int style) {
		super(parent, SWT.NONE);
	
		setLayout(new GridLayout(2, false));

		Label lblNewLabel = new Label(this, SWT.NONE);
		lblNewLabel.setText("Kode");

		txtKode = new Text(this, SWT.BORDER);
		txtKode.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,
				1, 1));

		Label lblNewLabel_1 = new Label(this, SWT.NONE);
		lblNewLabel_1.setText("Nama");

		txtName = new Text(this, SWT.BORDER);
		txtName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,
				1, 1));

	}

	int dateSelected = 0;

	public int getDateSelected() {
		return dateSelected;
	}

	public void setDateSelected(int dateSelected) {
		this.dateSelected = dateSelected;
	}

	public Text getTxtKode() {
		return txtKode;
	}

	public void setTxtKode(Text txtKode) {
		this.txtKode = txtKode;
	}

	public Text getTxtName() {
		return txtName;
	}

	public void setTxtName(Text txtNama) {
		this.txtName = txtNama;
	}



	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

}
